package com.hsnn.medstgmini.trading.pur.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @category 采购设置
 * @author 蔡春龙
 * @date 2015年6月14日
 */
@Entity
@Table(name = "sys_purconfig")
public class PurConfig {

	
	private String configId;//设置id
	private String configNo;//设置项编号
	private String configOpt;//设置项名
	private String configValue;//设置值
	private String configRemark;//设置说明
	private String configPolitic;
	private String areaId;
	private String checkRule;
	private String configRemmarkOne;
	@Transient
	public String getConfigRemmarkOne() {
		return configRemmarkOne;
	}

	public void setConfigRemmarkOne(String configRemmarkOne) {
		this.configRemmarkOne = configRemmarkOne;
	}

	@Id
	@Column(name = "config_id")
	public String getConfigId() {
		return configId;
	}

	public void setConfigId(String configId) {
		this.configId = configId;
	}

	@Column(name = "config_no")
	public String getConfigNo() {
		return configNo;
	}

	public void setConfigNo(String configNo) {
		this.configNo = configNo;
	}

	@Column(name = "config_opt")
	public String getConfigOpt() {
		return configOpt;
	}

	public void setConfigOpt(String configOpt) {
		this.configOpt = configOpt;
	}

	@Column(name = "config_value")
	public String getConfigValue() {
		return configValue;
	}

	public void setConfigValue(String configValue) {
		this.configValue = configValue;
	}

	@Column(name = "config_remark")
	public String getConfigRemark() {
		return configRemark;
	}

	public void setConfigRemark(String configRemark) {
		this.configRemark = configRemark;
	}
	
	@Column(name = "config_politic")
	public String getConfigPolitic() {
		return configPolitic;
	}

	public void setConfigPolitic(String configPolitic) {
		this.configPolitic = configPolitic;
	}
	
	@Column(name = "area_id")
	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}
	@Column(name = "check_rule")
	public String getCheckRule() {
		return checkRule;
	}

	public void setCheckRule(String checkRule) {
		this.checkRule = checkRule;
	}

	@Override
	public String toString() {
		return "PurConfig [configId=" + configId + ", configNo=" + configNo
				+ ", configOpt=" + configOpt + ", configValue=" + configValue
				+ ", configRemark=" + configRemark + ", configPolitic="
				+ configPolitic + ", areaId=" + areaId + ", checkRule="
				+ checkRule + ", configRemmarkOne=" + configRemmarkOne + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((areaId == null) ? 0 : areaId.hashCode());
		result = prime * result
				+ ((checkRule == null) ? 0 : checkRule.hashCode());
		result = prime * result
				+ ((configId == null) ? 0 : configId.hashCode());
		result = prime * result
				+ ((configNo == null) ? 0 : configNo.hashCode());
		result = prime * result
				+ ((configOpt == null) ? 0 : configOpt.hashCode());
		result = prime * result
				+ ((configPolitic == null) ? 0 : configPolitic.hashCode());
		result = prime * result
				+ ((configRemark == null) ? 0 : configRemark.hashCode());
		result = prime
				* result
				+ ((configRemmarkOne == null) ? 0 : configRemmarkOne.hashCode());
		result = prime * result
				+ ((configValue == null) ? 0 : configValue.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PurConfig other = (PurConfig) obj;
		if (areaId == null) {
			if (other.areaId != null)
				return false;
		} else if (!areaId.equals(other.areaId))
			return false;
		if (checkRule == null) {
			if (other.checkRule != null)
				return false;
		} else if (!checkRule.equals(other.checkRule))
			return false;
		if (configId == null) {
			if (other.configId != null)
				return false;
		} else if (!configId.equals(other.configId))
			return false;
		if (configNo == null) {
			if (other.configNo != null)
				return false;
		} else if (!configNo.equals(other.configNo))
			return false;
		if (configOpt == null) {
			if (other.configOpt != null)
				return false;
		} else if (!configOpt.equals(other.configOpt))
			return false;
		if (configPolitic == null) {
			if (other.configPolitic != null)
				return false;
		} else if (!configPolitic.equals(other.configPolitic))
			return false;
		if (configRemark == null) {
			if (other.configRemark != null)
				return false;
		} else if (!configRemark.equals(other.configRemark))
			return false;
		if (configRemmarkOne == null) {
			if (other.configRemmarkOne != null)
				return false;
		} else if (!configRemmarkOne.equals(other.configRemmarkOne))
			return false;
		if (configValue == null) {
			if (other.configValue != null)
				return false;
		} else if (!configValue.equals(other.configValue))
			return false;
		return true;
	}

	
}
